package cn.fuxi2022.module.pay.controller;

import cn.fuxi2022.model.resp.R;
import cn.fuxi2022.module.pay.service.GroupStudentPayLogCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin/studentPayLog/count")
public class GroupStudentPayLogCountController {

    @Autowired
    private GroupStudentPayLogCountService groupStudentPayLogCountService;

    @GetMapping
    public R getCount() {
        return R.ok().data(groupStudentPayLogCountService.groupStudentPayLogCount());
    }

    @GetMapping("refresh")
    public R refresh() {
        groupStudentPayLogCountService.groupStudentPayLogRefresh();
        return R.ok();
    }

}
